<div class="fl leftBox">
	<div class="catg_head boxSizing">
		<p>対象商品</p>
		<p><b>{{ products.total }}点</b></p>
	</div>
	<div class="catg_search_box">
		<form action="/search-bootstrap" method="get">
			<p class="searC">
				<input type="text" class="catg_searchIpt fl" placeholder="キーワードで探す" name="q" maxlength="100" autocomplete="off" value="{{this.param.keyword}}">
				<button class="catg_searchBtn fr" type="submit"><i class="fa fa-search"></i></button>
			</p>
		</form>
	</div>
	<div class="catg_muneBox">
		<h3 class="catg_searH">ITEMアイテム</h3>
		<ul class="catg_mune">
			{% for cate in catalog.categories() %}
			   {% if cate.is_enabled==1 %}
				   {% if cate.id!=5 %}
				   		<li><a href="{{ cate.url }}"><b>{{ cate.name }}</b></a></li>
				   		{% for subcate in cate.children %}
							{% if subcate.is_enabled ==1%}
								{% set total = catalog.getCategoryProducts(subcate.id) %}
									<li><a href="{{ subcate.url }}">{{ subcate.name }}({{ total['total']?:0 }})</a></li>
								{% endif%}
						{% endfor %}
				   {% else %}
					   {% for subcate in cate.children %}
							{% set parent_total = catalog.getCategoryProducts(subcate.id) %}
							{% if subcate.is_enabled %}
							<li><a href="{{ subcate.url }}"><b>{{ subcate.name }}({{ parent_total['total']?:0 }})</b></a></li>
							{% endif %}
							{% if subcate.children %}
								{% for cat in subcate.children %}
								{% if cat.is_enabled ==1 %}
								{% set child_total = catalog.getCategoryProducts(cat.id) %}
									<li><a href="{{ cat.url }}">{{ cat.name }}({{ child_total['total']?:0 }})</a></li>
									{% endif %}
								{% endfor %}
							{% endif %}
						{% endfor %}
					{% endif %}
				{% endif %}
			{% endfor %}
<!-- 			{% for cate in catalog.categories() %}
			   {% if cate.is_enabled==1 %}
			   {% if cate.id!=5 %}
					<li><a href="{{ subcate.url }}"><b>{{ subcate.name }}({{ parent_total['total']?:0 }})</b></a></li>
				{% endif %}
				{% endif %}
			{% endfor %} -->
			<!-- {% for cate in catalog.categories() %}
			   {% if cate.is_enabled==1 %}				   
				   {% for subcate in cate.children %}
						{% set parent_total = catalog.getCategoryProducts(subcate.id) %}
						<li><a href="{{ subcate.url }}"><b>{{ subcate.name }}({{ parent_total['total']?:0 }})</b></a></li>
						{% if subcate.children %}
							{% for cat in subcate.children %}
							{% set child_total = catalog.getCategoryProducts(cat.id) %}
								<li><a href="{{ cat.url }}">{{ cat.name }}({{ child_total['total']?:0 }})</a></li>
							{% endfor %}
						{% endif %}
					{% endfor %}				
				{% endif %}
			{% endfor %} -->
		</ul>
	</div>
</div>